package com.esperia09.webservice.mixibot.oauth;

import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;

// http://developer.mixi.co.jp/connect/mixi_graph_api/api_auth/
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class MixiTokenStruct {

	/* // TODO: PrimaryKeyを設定する
    @PrimaryKey
    @Persistent
    private String empno;
    */
    @Persistent
	private String access_token;	// ex.)c2be2257f3dae3df4efcb010ae6eea
    @Persistent
	private String refresh_token;	// ex.)39c5662a2e8b87d41c1eebe79f68af
    @Persistent
	private String expires_in;		// ex.)900
    @Persistent
	private String scope;			// ex.)r_voice w_voice
    @Persistent
	private String error;			// ex.)invalid_grant
    
    
	public void setAccess_token(String access_token) {
		this.access_token = access_token;
	}
	public String getAccess_token() {
		return access_token;
	}
	public void setRefresh_token(String refresh_token) {
		this.refresh_token = refresh_token;
	}
	public String getRefresh_token() {
		return refresh_token;
	}
	public void setExpires_in(String expires_in) {
		this.expires_in = expires_in;
	}
	public String getExpires_in() {
		return expires_in;
	}
	public void setScope(String scope) {
		this.scope = scope;
	}
	public String getScope() {
		return scope;
	}
	public void setError(String error) {
		this.error = error;
	}
	public String getError() {
		return error;
	}
}
